package com.doeis.minaserver.packet;

import com.doeis.minaserver.packet.Packet.Direction;
import com.doeis.minaserver.packet.Packet.PacketType;
import com.doeis.minaserver.packet.Packet.ProtocolVersion;

public class ClientPacketFactory extends PacketFactory {

	public static InfoPacket createInfoPacket(String from,String to){
		InfoPacket packet = new InfoPacket();
		packet.setDirection(Direction.c2s);
		packet.setPacketType(PacketType.info);
		packet.setVersion(ProtocolVersion.V1_0_0);		
		packet.setTo( to );
		packet.setFrom( from );
		return packet;
	}
	
}
